public class SonTask implements  Runnable{
    private Son son;
    public SonTask(Son son) {
        this.son = son;
    }
    @Override
    public void run() {
        int i =0;
        while(i < 10){
            i++;
            this.son.playGame(7);
            try{
                Thread.sleep(200);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }
}
